package ${package.Mapper};

import ${package.Entity}.${entity};
import ${package.Entity?replace("entity","vo")}.${entity}VO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
<#--public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {-->
@Repository
public interface ${table.mapperName}{

   int deleteByPrimaryKey(String id);

   int deleteByIdList(@Param("list") List<String> idList);

   int insert(${entity} record);

   int insertBatchs(List<${entity}> list);

   int insertSelective(${entity} record);

   int updateByPrimaryKeySelective(${entity} record);

   int updateByPrimaryKey(${entity} record);

   int updateByPrimaryKeySelectiveBatchs(List<${entity}> recordList);

   ${entity} selectByPrimaryKey(String id);

   List<${entity}> get${entity}ListByPage(${entity}VO parmVO);

   List<${entity}> get${table.entityPath?cap_first}ListByParm(${entity}VO parmVO);

}
</#if>
